package cn.songwang.org.service;

import cn.songwang.basic.PageList;
import cn.songwang.org.domain.Department;
import cn.songwang.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService {
    //新增
    void add(Department department);
    //删除
    void delete(Long id);
    //修改
    void update(Department department);
    //通过id查询
    Department findByid(Long id);
    //查询全部
    List<Department> finAll(DepartmentQuery query);
    //高级查询后的条数
    Long count(DepartmentQuery query);
    //高级查询数据
    PageList<Department> findQuery(DepartmentQuery query);
}
